#include <stdio.h>
#include <string.h>
#include "stm32f1xx_hal.h"


void Bubble_Sort(float* arr, uint8_t length)
{
	uint8_t i,j;
	for(i = 0; i<length;i++)
	{
		for(j = 0; j<length -1-i;j++)
		{
			if(arr[j]>arr[j+1])
			{
				float tmp = arr[j+1];
				arr[j+1] = arr[i];
				arr[i] = tmp;	
			}	
		}
	}
}

